package myky.com.doctorapp.ui

import android.content.Intent
import android.view.View
import kotlinx.android.synthetic.main.activity_bespeak_doctor.*
import myky.com.doctorapp.R
import myky.com.doctorapp.base.BaseActivity
import myky.com.doctorapp.entity.DoctorWrapperEntity
import myky.com.doctorapp.presenter.DoctorListPresenter
import myky.com.doctorapp.utils.AddPhotoUtils
import myky.com.doctorapp.utils.Constants

/**
 * Description:
 * @author Mr.li
 * Ctreated by 2019/2/15 10:43
 */
class BespeakDoctorActivity : BaseActivity<DoctorListPresenter, DoctorWrapperEntity.DoctorListEntity.DoctorsEntity>(), View.OnClickListener {


    override fun showDataSuccess(datas: DoctorWrapperEntity.DoctorListEntity.DoctorsEntity?) {

    }

    override fun reloadActivity() {

    }

    override fun injectTarget(): View = findViewById(R.id.activity_bespeak_user)

    override fun initData() {

    }

    override fun initView() {
        activity_bespeak_user.setOnClickListener(this)
    }

    override fun getContenView(): Int = R.layout.activity_bespeak_doctor

    override fun onClick(p0: View?) {
        when (p0?.id) {
            R.id.activity_bespeak_user -> {
                AddPhotoUtils.getPhotos(this, 31, 0, 9, ArrayList<String>(), 1)
            }
        }
    }

    override fun onActivityReenter(resultCode: Int, data: Intent?) {
        super.onActivityReenter(resultCode, data)
        when (resultCode) {
            Constants.CASE_MEDICALRECORD -> {

            }

            Constants.TAKE_CAMERA -> {

            }

            Constants.TAKE_ALBUM -> {

            }
        }
    }


}